Ext.define('AM.view.TabPanel',{  
    extend: 'Ext.tab.Panel',  
    alias :'widget.tabPanel',
    initComponent : function(){  
        Ext.apply(this,{  
            id: 'content-panel',  
            region: 'center',   
            defaults: {  
               autoScroll:true,  
               bodyPadding: 0  
            },  
            activeTab: 0,  
            border: true,  
           //plain: true,  
            items: [{  
              id: 'HomePage',  
              title: '首页',  
              iconCls:'tab_home',  
              layout: 'fit',
              loader: {
                  bodyPadding:3,
                  url: 'test/Welcome.htm',
                  contentType: 'html',
                  autoLoad: true
              }
//              closable:true
            }]  
        });  
        this.callParent(arguments);  
    }  
})  